import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path:'/discover',
    component:()=>import(/*webpackChunkName:'discover'*/'@/pages/discover')
  },
  {
    path:'/friend',
    component:()=>import(/*webpackChunkName:'friend'*/'@/pages/friend')
  },
  {
    path:'/mine',
    component:()=>import(/*webpackChunkName:'mine'*/'@/pages/mine'),
    children:[
      {
        path:'heart',
        component:()=>import(/*webpackChunkName:'heart'*/'@/pages/mine/heart')
      },
      {
        path:'brain',
        component:()=>import(/*webpackChunkName:'brain'*/'@/pages/mine/brain')
      }
    ]
  },
  {
    path:'*',
    component:()=>import('@/pages/page4040')
  },
  {
    path:'/list',
    name:'list',
    component:()=>import(/*webpackChunkName:'list'*/'@/pages/list')
  },
  {
    path:'/detail/:productid',
    name:'detail',
    component:()=>import(/*webpackChunkName:'detail'*/'@/pages/detail')
  }
];

const router = new VueRouter({
  routes,
});

export default router;
